import Layout from '@/layout'

const distributorFinanceRouter = {
  path: '/distributor/finance',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorFinance',
  meta: {
    title: '财务管理',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'account-recharge',
      component: () => import('@/views/distributor/finance/account-recharge-list'),
      name: 'DistributorAccountRecharge',
      meta: { title: '账户充值', noCache: false }
    },
    {
      path: 'account-transaction',
      component: () => import('@/views/distributor/finance/account-transaction-list'),
      name: 'DistributorAccountTransaction',
      meta: { title: '账户明细', noCache: false }
    }
  ]
}

export default distributorFinanceRouter
